package com.aaa.member.dao;

import com.aaa.entity.CouponHistory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CouponHistoryDao extends BaseMapper<CouponHistory> {

    List<CouponHistory> selectAll(String cname);
    List<CouponHistory> selectByMemberId(@Param("memberId") Long memberId,@Param("shopId") Long shopId,@Param("format") String format);

    Integer updateState(@Param("id") Integer id,@Param("date") String date);
}
